價格:免費
更新日期:2018-11-15
檔案大小:2.5M
目前版本:1.01
版本需求:Android 4.4 以上版本
官方網站:https://giant2turtle.wordpress.com/
Email:giant2turtle@gmail.com
GitHub client for android built using MVVM design pattern, reactive programming with LiveData, repository pattern, Room Persistence Library.
Features: Pagination, caching search results and option to add bookmarks.
Code is packaged by feature. Data package contains local database model classes, web service and repository wich is used as a single source of truth.
UI package contains VIEW (Activities) and VIEW MODEL (AndroidViewModel)code for each screen in the app. VIEW MODEL don't hold any references to the VIEW or the MODEL classes in data package so the code is modular and it is easy to change the screens and add features.
LiveData is used to communicate between app layers. Any changes in the MODEL layer are propagated via LiveData to VIEW MODEL and then to the VIEW layer.
In Utils class there is Configuretion interface in wich you can configure default search term, results per page and for how long should results be kept in local cache, before trying to update with new ones.
Check out source code at: https://github.com/giantturtle/RepoExplorerMVVM